﻿using System;

namespace WPFPractice.Services
{
	/// <summary>
	/// 测试依赖注入的接口
	/// </summary>
	public interface ITextService
	{
		string GetText();
	}

	/// <summary>
	/// 测试依赖注入的实现类
	/// </summary>
	public class TextService : ITextService
	{
		public string GetText()
		{
			return DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
		}
	}
}
